home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / Direct3D / BumpMapping / BumpWaves / readme.txt < prev    next >
Text File  |  2001-10-10  |  3KB  |  64 lines

  1. //-----------------------------------------------------------------------------
  2. // Name: BumpWaves Direct3D Sample
  3. // 
  4. // Copyright (c) 1998-2001 Microsoft Corporation. All rights reserved.
  5. //-----------------------------------------------------------------------------
  6.  
  7.  
  8. Description
  9. ===========
  10.    The BumpWaves program demonstrates the bump mapping capabilities of 
  11.    Direct3D. Bump mapping is a texture blending technique used to render the
  12.    appearance of rough, bumpy surfaces. This sample renders a waterfront scene
  13.    with only 4 triangles. The waves in the scene are completely fabricated with
  14.    a bumpmap.
  15.  
  16.    Note that not all cards support all features for all the various bumpmapping
  17.    techniques (some hardware has no, or limited, bumpmapping support). For more
  18.    information on bumpmapping, refer to the DirectX SDK documentation. 
  19.  
  20.    This sample also uses a technique called "projected textures", which is a
  21.    texture-coordinate generation technique and is not the focal point of the 
  22.    sample. For more information on texture-coordinate generation, refer again
  23.    to the DirectX SDK documentation.
  24.  
  25.  
  26. Path
  27. ====
  28.    Source:     DXSDK\Samples\Multimedia\D3D\BumpMapping\BumpWaves
  29.    Executable: DXSDK\Samples\Multimedia\D3D\Bin
  30.  
  31.  
  32. User's Guide
  33. ============
  34.    The following keys are implemented. The dropdown menus can be used for the
  35.    same controls.
  36.       <Enter>     Starts and stops the scene
  37.       <Space>     Advances the scene by a small increment
  38.       <F1>        Shows help or available commands.
  39.       <F2>        Prompts user to select a new rendering device or display mode
  40.       <Alt+Enter> Toggles between fullscreen and windowed modes
  41.       <Esc>       Exits the app.
  42.  
  43.  
  44. Programming Notes
  45. =================
  46.    Bumpmapping is an advanced multitexture blending technique that can be used
  47.    to render the appearance of rough, bumpy surfaces. The bump map itself is a 
  48.    texture that stores the perturbation data. Bumpmapping requires two
  49.    textures, actually. One is an environment map, which contains the lights 
  50.    that you see in the scene. The other is the actual bumpmapping, which 
  51.    contain values (stored as du and dv) used to "bump" the environment maps 
  52.    texture coordinates. Some bumpmaps also contain luminance values to control 
  53.    the "shininess" of a particular texel.
  54.  
  55.    In this sample, bumpmapping is used to generate waves in a scene. The
  56.    backdrop is used as a projective texture for the environment map, so it
  57.    reflects in the waves. The waves themselves appear to be generated with lots
  58.    of polygons, but in reality, it's just one large quad.
  59.  
  60.    This sample makes use of common DirectX code (consisting of helper functions,
  61.    etc.) that is shared with other samples on the DirectX SDK. All common
  62.    headers and source code can be found in the following directory:
  63.       DXSDK\Samples\Multimedia\Common
  64.